<!DOCTYPE html>
<html>
<head>
	<title>交互式课程点评系统</title>
	<meta charset="utf-8">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/dist/css/bootstrap.min.css">
</head>
<body>
<div class="container">
	<div class="row clearfix">
		<div class="col-md-12 column">
			<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
				<div class="navbar-header">
					 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button> <a class="navbar-brand" href="#">交互式课程点评系统</a>
				</div>
				
				<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav">
						<li class="active">
							 <a href="{:U('Index/index')}">首页</a>
						</li>
						<li class="dropdown">
							 <a href="{:U('Index/index')}" class="dropdown-toggle" data-toggle="dropdown">用户<strong class="caret"></strong></a>
							<ul class="dropdown-menu">
								<li>
									 <a href="{:U('Index/login')}">登录</a>
								</li>
								<li class="divider">
								</li>
								<li>
									 <a href="{:U('Index/signup')}">注册</a>
								</li>
							</ul>
						</li>
					</ul>
					<form class="navbar-form navbar-left" method="POST" role="search" action="{:U('Index/search')}">
						<div class="form-group">
							<input type="text" name="searchKey" class="form-control" placeholder="课程/教师" />
						</div> <button type="submit" class="btn btn-default">查询</button>
					</form>
				</div>
			</nav>
		</div>
	<div class="container-fluid"></div>

	<div class="container-fluid" style="margin-top: 100px;"></div>
	<div class="row-fluid">
		<div class="span12">
			<h1 class="text-center">
				热门课程
			</h1>
			<foreach name="hot" item="h">
				<a href="{:U('Index/comment')}?course_id={$h.id}">
					<h2 class="text-center">{$h["course_name"]} -- {$h['teacher']}
					</h2>
				</a>
			</foreach>
		</div>
	</div>
	<div class="row-fluid">
		<div class="span12">
			<h1 class="text-center">
				你可以点评的课程
			</h1>
			
			<if condition="($stuCourse == NULL)">
				<h2  class="text-center"> 你没有可以点评的课程 </h2>
			</if>
			<foreach name="stuCourse" item="h">
				<a href="{:U('Index/comment')}?course_id={$h.id}">
					<h2 class="text-center">{$h["course_name"]} -- {$h['teacher']}
					</h2>
				</a>
			</foreach>

		</div>
	</div>
</div>
</div>
</div>
<script src="__PUBLIC__/dist/jquery-3.1.1.js"></script>
<script src="__PUBLIC__/dist/js/bootstrap.min.js"></script>
<script>
	
</script>
</body>
</html>